<template>
    <div>
        <pro :startTime="startTime"
            :endTime="endTime"
            :proData="test"
             :colnum="45"
            :title="'titlename'"
            @itemClick="itemClick"
        ></pro> 
    </div>
</template>
<script>
import moment from "moment";
import pro from "./pro"
export default {
    components:{pro},
    data(){
        return {
            reload:true,
            startTime:"2019-7-15",
            endTime:"2019-10-1",
            test:[{
              startTime:"2019-7-20",
              endTime:"2019-7-28",
              titlename:"单项工程1",
              nodelist:[{
                  name:'节点1',
                  planStartTime:'2019-7-20',
                  planEndTime:'2019-7-21',
                    realStartTime:'2019-7-20',
                   realEndTime:'2019-7-21',
              },
              {
                  name:'节点2',
                  planStartTime:'2019-7-21',
                  planEndTime:'2019-7-22',
                     realStartTime:'2019-7-21',
                   realEndTime:'2019-7-22',
              },
              ]
            },
            // {
            //   startTime:"2019-7-25",
            //   endTime:"2019-8-13",
            //   titlename:"单项工程2"
            // },
            // {
            //   startTime:"2019-7-18",
            //   endTime:"2019-8-28",
            //   titlename:"单项工程3"
            // },
            ]
        }
    },
    methods:{
        itemClick(index){
            console.log(index)
        }
    }
}
</script>

